package com.zxq.common.utils;

import java.util.Objects;

public class NullUtil {

    public static <T> T defaultIfNull(T value, T defaultValue) {
        return Objects.nonNull(value) ? value : defaultValue;
    }

}
